<div class="box">
	<div class="box-header well">
		<h2><i class="icon-th"></i> 站长推荐</h2>
		<!-- <div class="box-icon">
			<a href="#" class="btn btn-minimize btn-round" title="隐藏"><i class="icon-chevron-down"></i></a>
		</div> -->
	</div>
	<div class="box-content">
		<ul class="nav nav-tabs" id="myTab">
			<li class="active"><a href="#recommend-htmltemplate">模板</a></li>
			<li class=""><a href="#recommend-picmaterial">图片</a></li>
			<li class=""><a href="#recommend-jqueryPlugin">jQuery</a></li>
			<li class=""><a href="#recommend-font">字体</a></li>
		</ul>
		 
		<div id="myTabContent" class="tab-content">
			<div class="tab-pane active" id="recommend-htmltemplate">
				<ul class="unstyled">
					<?php if (!empty($htmlRecommends)):?>
						<?php foreach($htmlRecommends as $index=>$htmlRecommend):?>
						<li>
							<?php if ($index <3):?>
								<span class="label label-important"><?php echo $index+1?></span>
							<?php else:?>
								<span class="label label-info"><?php echo $index+1?></span>
							<?php endif;?>
						  	<a href="/htmltemplate/detail/id/<?php echo $htmlRecommend['id']?>"><?php echo $htmlRecommend['name']?></a>
					  		<span class="pull-right"><?php echo $htmlRecommend['view_num']?></span>
						</li>
						<?php endforeach;?>
					<?php else:?>
						<div class="alert alert-info">
							暂时没有数据
						</div>
					<?php endif;?>
				</ul>
			</div>
			
			<div class="tab-pane" id="recommend-picmaterial">
				<ul class="unstyled">
					<?php if (!empty($picRecommends)):?>
						<?php foreach($picRecommends as $index=>$picRecommend):?>
						<li>
							<?php if ($index <3):?>
								<span class="label label-important"><?php echo $index+1?></span>
							<?php else:?>
								<span class="label label-info"><?php echo $index+1?></span>
							<?php endif;?>
						  	<a href="/picmaterial/detail/id/<?php echo $picRecommend['id']?>"><?php echo $picRecommend['name']?></a>
					  		<span class="pull-right"><?php echo $picRecommend['view_num']?></span>
						</li>
						<?php endforeach;?>
					<?php else:?>
						<div class="alert alert-info">
							暂时没有数据
						</div>
					<?php endif;?>
				</ul>
			</div>
			
			<div class="tab-pane" id="recommend-jqueryPlugin">
				<ul class="unstyled">
					<?php if (!empty($jqueryRecommends)):?>
						<?php foreach($jqueryRecommends as $index=>$jqueryRecommend):?>
						<li>
							<?php if ($index <3):?>
								<span class="label label-important"><?php echo $index+1?></span>
							<?php else:?>
								<span class="label label-info"><?php echo $index+1?></span>
							<?php endif;?>
						  	<a href="/jqueryplugin/detail/id/<?php echo $jqueryRecommend['id']?>"><?php echo $jqueryRecommend['name']?></a>
					  		<span class="pull-right"><?php echo $jqueryRecommend['view_num']?></span>
						</li>
						<?php endforeach;?>
					<?php else:?>
						<div class="alert alert-info">
							暂时没有数据
						</div>
					<?php endif;?>
				</ul>
			</div>
			
			<div class="tab-pane" id="recommend-font">
				<ul class="unstyled">
					<?php if (!empty($fontRecommends)):?>
						<?php foreach($fontRecommends as $index=>$fontRecommend):?>
						<li>
							<?php if ($index <3):?>
								<span class="label label-important"><?php echo $index+1?></span>
							<?php else:?>
								<span class="label label-info"><?php echo $index+1?></span>
							<?php endif;?>
						  	<a href="/font/detail/id/<?php echo $fontRecommend['id']?>"><?php echo $fontRecommend['name']?></a>
					  		<span class="pull-right"><?php echo $fontRecommend['view_num']?></span>
						</li>
						<?php endforeach;?>
					<?php else:?>
						<div class="alert alert-info">
							暂时没有数据
						</div>
					<?php endif;?>
				</ul>
			</div>
		</div>
	</div>
</div>
